﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ForecastPost_ssq.ascx.cs" Inherits="APP_Controls_ForecastPost_ssq" %>
<div class="betting_right">
    <div class="betting_predict">
        <div class="betting_predict_t">
            <h2>预测选号</h2>
            <span><a href="../ForecastPost_List.aspx">更多&gt;&gt;</a></span>
        </div>
        <ul class="betting_predict_ul">
            <% if (forecastShuang != null)
                {
                    for (int i = 0; i < forecastShuang.Count; i++)
                    {%>
            <li>·<a href="ForecastPostInfo.aspx?id=<%=forecastShuang[i].id %>"><%=forecastShuang[i].Title.Length > 16? forecastShuang[i].Title.Substring(0, 16) : forecastShuang[i].Title %></a></li>
            <%}
                }%>
        </ul>
    </div>
    <div class="d_r_t">
        <h2>中彩排行</h2>
        <p>本站累计中奖<span><%=jiangjin2 %></span> 亿元</p>
    </div>
    <ul class="d_paihang">
        <%if (userAccount != null && userAccount.Count > 0)
            {
                for (int i = 0; i < (userAccount.Count > 12 ? 12 : userAccount.Count); i++)
                {
        %>
        <li>
            <b <%if (i < 3)
                { %>class="yellowbg"
                <%}
                else
                { %>
                class="p_n" <%} %>><%=i+1 %></b>
            <p class="p_n"><%=SelectName(userAccount[i].user_id)%></p>
            <p class="p_date">
                <%--   <%= Math.Round(Convert.ToDecimal(userAccount[i].winTotal) % 100000000 / 10000,2)%> 万元--%>
                <%if (Convert.ToDecimal(userAccount[i].winTotal) > 100000000)//亿
                    {%>
                <%= Math.Round(Convert.ToDecimal(userAccount[i].winTotal) / 100000000 ,2)%> 亿元
                                       <%}
                                           else
                                           {%>
                <%if (Convert.ToDecimal(userAccount[i].winTotal) > 10000)
                    {%>
                <%= Math.Round(Convert.ToDecimal(userAccount[i].winTotal) /10000 ,2)%> 万元
                                               <%}
                                                   else
                                                   {%>
                <%= Math.Round(Convert.ToDecimal(userAccount[i].winTotal),2)%> 元
                                               <%}
                                                   }
                                               %>
            </p>
        </li>
        <% }
            }%>
    </ul>
</div>
